package com.liang.service;


import com.liang.pojo.Dutyzxarmyx;

import java.util.List;
import java.util.Map;

/**
 *@作者:lsk
 *Service接口
 *@Date:2023/10/21
*/
public interface DutyzxarmyxService {

	/**
	根据Army_idAndDuty_id查询
	*/
	public Object selectByArmy_idAndDuty_id(Long army_id, Long duty_id);

	/**
	根据Army_idAndDuty_id更新
	*/
	public Integer updateByArmy_idAndDuty_id(Dutyzxarmyx demo);

	/**
	根据Army_idAndDuty_id删除
	*/
	public Integer deleteByArmy_idAndDuty_id(Long army_id, Long duty_id);



	/**
	 insert:(插入)
	*/
	public Object insert(Dutyzxarmyx demo);


	/**
	 insertOrUpdate(插入或更新(根据主键或唯一索引更新，主键和唯一索引不会改变))
	*/
	public Integer insertOrUpdate(Dutyzxarmyx demo);


	/**
	 insertBath:(批量插入)
	*/
	public Integer insertBatch(List<Dutyzxarmyx> list);


	/**
	 insertOrUpdateBatch:(批量插入或更新)
	*/
	public Integer insertOrUpdateBatch(List<Dutyzxarmyx> list);


	/**
	 selectList:(根据参数查询集合)
	*/
	public List<Dutyzxarmyx> selectList(Map<String, Object> param);


	/**
	 selectCount:(根据集合查询数量)
	*/
	public Long selectCount(Map<String, Object> param);
}